home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4624 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: oitnews.harvard.edu!NewsWatcher!user
  2. From: duffyfr@a1.tch.harvard.edu (Frank H. Duffy, MD)
  3. Newsgroups: comp.lang.c
  4. Subject: GCC structure alignment query
  5. Date: Mon, 05 Feb 1996 20:46:02 -0500
  6. Organization: Harvard Medical School
  7. Message-ID: <duffyfr-0502962046030001@134.174.41.144>
  8. NNTP-Posting-Host: 134.174.41.144
  9.  
  10. Am trying to read a complex data structure created in
  11. DOS with Microsoft C compiled as "cl -Zp foo.c".
  12.  
  13. I am using gcc under Linux and need to unpack structures that
  14. contain byte size variables. Gcc defaults to a structure the
  15. sizeof which is slightly too large. What command allows me to
  16. create byte packed structures and avoid alignment on word
  17. boundaries? Could not seem to find it in the gcc man pages.
  18.  
  19. Please respond to e-mail address below.
  20.  
  21. Many thanks.
  22.  
  23. Frank
  24.  
  25. ----------------------------------------------------------------
  26. Frank H. Duffy, MD            e-mail: duffyfr@a1.tch.harvard.edu
  27. Neurlogy                      phone: (617)-355-7919
  28. Childrens Hospital &          fax:  (617)-355-7230
  29. Harvard Medical School        ham radio: k1moq
  30. 300 Longwood Ave
  31. Boston, MA 02115 USA
  32.